cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(LibNav REQUIRED)
include_directories(${LibNav_INCLUDE_DIRS})
set(LIBS ${LibNav_LIBRARIES})

find_package(LibTimeutils REQUIRED)
include_directories(${LibTimeutils_INCLUDE_DIRS})
list(APPEND LIBS ${LibTimeutils_LIBRARIES})

find_package(Proj4 REQUIRED)
include_directories(${Proj4_INCLUDE_DIRS})
list(APPEND LIBS ${Proj4_LIBRARIES})
  
ADD_LIBRARY(bilio
  jplaeriallib.c
  read_aviris.c
  read_prism.c
)

target_link_libraries(bilio ${LIBS})

install (TARGETS bilio DESTINATION lib)
